<form class="layui-form" lay-filter="tpl_outlink{$outlink_id}" action="{:url('outlink/saveData')}">
	<input type="hidden" name="outlink_id" class="layui-input" />
	<div class="layui-form-item">
		<label class="layui-form-label">外链分类</label>
		<div class="layui-input-inline">
			<select name="outlink_category_id" lay-filter="outlink_category_id{$outlink_id}">
				{volist name="getOutlinkCategory" id="list"}
				<option value="{$list.outlink_category_id}">{$list.category_name}</option>
				{/volist}
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">外链标题</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="outlink_name" lay-verify="required" placeholder="请输入外链标题" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">外链地址</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="outlink_url" placeholder="http://" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">描述</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<textarea name="outlink_intro" class="layui-textarea"></textarea>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">外链图标</label>
		<div class="layui-input-block">
			<blockquote class="layui-elem-quote layui-quote-nm">
				<div class="layui-upload-list" id="layui-upload-list{$outlink_id}">

				</div>
				<div class="layui-upload-drag outlink_pictures_upload" id="outlink_pictures_upload{$outlink_id}">
					<i class="layui-icon layui-icon-upload"></i>
					<p>点击或拖拽上传</p>
				</div>
				<div style="clear: both;">

				</div>
			</blockquote>
		</div>

	
	<div class="layui-form-item">
			<label class="layui-form-label">显示排序</label>
			<div class="layui-input-inline layui-input-number">
				<input type="number" value="0" name="sort" lay-verify="required|number" placeholder="" autocomplete="off" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">前端显示排序</div>
		</div>
	
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_outlink">保存数据</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>
<script src="/static/um/umeditor.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/um/lang/zh-cn/zh-cn.js" type="text/javascript" charset="utf-8"></script>
<script>
	// 赋值
	var outlink_id = "{$outlink_id}";
	var outlink_form_value = {$data};
	var um = UM.getEditor('outlink_content{$outlink_id}');
	um.ready(function(){
		if(outlink_form_value.outlink_content != undefined){
			um.setContent(outlink_form_value.outlink_content);
		}
	})
</script>
<script src="/static/js/outlink/outlink_tpl.js" type="text/javascript" charset="utf-8"></script>
